package com.fengzhi.web.dao.core;

import java.io.Serializable;

public interface IBasicDao {
	/**
	 * 
	 * @Description: TODO(保存实体对象)
	 * @param entity
	 */
	<T> void save(T entity);

	/**
	 * 
	 * @Description: TODO(删除实体对象)
	 * @param entity
	 */
	<T> void delete(T entity);

	/**
	 * 
	 * @Description: TODO(更新实体对象)
	 * @param entity
	 */
	<T> void update(T entity);

	/**
	 * 
	 * @Description: TODO(根据id查询实体对象)
	 * @param entityClass
	 * @param id
	 * @return
	 */
	@SuppressWarnings("rawtypes")
	<T> T getById(Class entityClass, Serializable id);

}
